<template>
  <div class="socializing">
    <div class="title">官方微信社交圈</div>
    <div class="items">
      <div class="item">
        <div class="img">
          <img :src="imgInfo.gzh" alt="商务联系二维码" />
        </div>
        <span>微信公众号</span>
      </div>
      <div class="item">
        <div class="img">
          <img :src="imgInfo.swlx" alt="商务联系二维码" />
        </div>
        <span>客服微信</span>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
// import systemApi from '@/service/api/system'

interface imgInfoState {
  swlx: string
  gzh: string
}
const imgInfo = ref<imgInfoState>({
  swlx: '',
  gzh: ''
})
const getQrCode = () => {
  imgInfo.value.swlx =
    ''
  imgInfo.value.gzh =
    ''
  // systemApi.getTypeSetting('COOPERATION').then(({ data }) => {
  //   imgInfo.value.swlx = data.content
  // })
  // systemApi.getTypeSetting('MP_QRCODE_TYPE').then(({ data }) => {
  //   imgInfo.value.gzh = data.content
  // })
}
getQrCode()
</script>

<style scoped lang="scss">
.socializing {
  margin-top: 16px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 64px;
  .title {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: #333333;
    padding: 24px 24px 17px 24px;
    border-bottom: 1px solid #eeeeee;
  }
  .items {
    margin-top: 41px;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      &:last-child {
        margin-left: 64px;
      }
      .img {
        width: 118px;
        height: 118px;
        border: 1px solid #eeeeee;
        display: flex;
        align-items: center;
        justify-content: center;
        img {
          width: 101px;
          height: 101px;
          object-fit: cover;
        }
      }
      span {
        margin-top: 12px;
        font-size: 14px;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        color: #333333;
      }
    }
  }
}
</style>
